import React, { Component } from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import Home from "./containers/home/home.js"
import Detail from "./containers/detail/detail"
import Order from "./containers/order/order"
import Pay from "@/containers/pay/pay.js"
import User from "@/containers/user/user.js"
import OrderList from "@/containers/orderList/orderList.js"
class App extends Component {
  render() {
    return (
      <BrowserRouter>
        <div>
          <Route exact path='/' component={Home} />
          <Route  path='/detail' component={Detail}/>
          <Route  path='/order' component={Order}/>
          <Route  path='/pay' component={Pay}/>
          <Route  path='/user' component={User}/>
          <Route  path='/OrderList' component={OrderList}/>
        </div>
      </BrowserRouter>
    )
  }
}

export default App